import Vue from 'vue';
import App from './App.vue';
import './registerServiceWorker';
import router from './router';
import store from './store';
import Layout from '@/components/Layout/Layout.vue';
import Icon from '@/components/Icon.vue';
import { Carousel } from 'ant-design-vue';

Vue.use(Carousel);

Vue.config.productionTip = false;

Vue.component('Icon', Icon);
Vue.component('Layout', Layout);
Vue.component('Carousel', Carousel)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');


window.onload = function () {
  setTimeout(()=>{
    window.scrollTo(0,1000)
  }, 0)
}

if(document.documentElement.clientWidth > 500){
  window.alert('为保证浏览效果，请使用手机浏览本页面！')
}
